import request from '@/utils/request'
import type { saleRankList, Banners, Floors, recommendListResponse } from '@/api/home/interface/index'
// 首页所有接口枚举
enum Api {
    saleRankListApi = '/mock/saleranklist',
    recommendListApi = "/mock/recommendList",
    getBannersApi = '/mock/getBanners',
    getFloorsApi = '/mock/floors'
}
/**
 * 获取首页左侧百强榜列表信息
 * @returns saleRankList  
 */
export const reqSaleRankList = () => request.get<any, saleRankList>(Api.saleRankListApi)


/**
 * 获取首页轮播图数据
 * @returns Banners
 */
export const reqBanners = () => request.get<Banners, any>(Api.getBannersApi)

/**
 * 获取分类楼层数据
 * @returns Floors
 */
export const reqFloors = () => request.get<Floors, any>(Api.getFloorsApi)

/**
 * 获取推荐楼层数据
 * @returns recommendListResponse
 */
export const reqrecommendList = () => request.get<any, recommendListResponse>(Api.recommendListApi);
